<?php $this->load->view('common/header'); ?>
<?php $this->load->view('common/header-common'); ?>
<section id="member-register" class="bg">
	<div class="container">
		<div class="row-fluid">
			<div class="span6 offset3" id="form-box">
				<form action="<?php echo site_url("user/register");?>" id="form-register" class="form-horizontal form-hor-small" method="POST">
							<fieldset>
								<legend>注册</legend>
								<div class="form-group">
									<h2 class="form-title">注册家园通行证</h2>
									<?php if (isset($error)) {?>
									<div class="alert">
				  						<a class="close" data-dismiss="alert">×</a>
				  						<strong>错误</strong> <?php echo $error;?>
									</div>
									<?php }?>
									<div class="control-group">
										<label for="reg-stuID" class="control-label">邮箱</label>
										<div class="controls">
											<input type="email" name="email" id="reg-email" class="input-medium" value="<?php echo set_value("email");?>" check-type="required mail" required-message="请输入邮箱" mail-message="邮箱格式不正确">
											<span class="help-inline"><?php echo form_error("email")?></span>
										</div>
									</div>
									<div class="control-group">
										<label for="reg-stuID" class="control-label">学号</label>
										<div class="controls">
											<input type="text" id="reg-stuID" class="input-medium" name="stuID" value="<?php echo set_value("stuID");?>" check-type="required stdID" required-message="请输入学号" stdID-message="学号格式不正确">
											<span class="help-inline"><?php echo form_error("stuID")?></span>
										</div>
									</div>
									<div class="control-group">
										<label for="reg-stuID" class="control-label">教务密码</label>
										<div class="controls">
											<input type="password" id="reg-hdupassword" name="password" value="<?php echo set_value("password");?>" class="input-medium" check-type="required" required-message="请输入密码">
											<span class="help-inline"><?php echo form_error("password")?></span>
										</div>
										<span class="help-info"><a href="http://www.hdu.edu.cn">为什么我们需要您的教务系统密码？</a></span>
									</div>
									<div class="form-actions">
										<button type="submit" class="btn btn-primary">注册</button>
										<a href="<?php echo site_url("/user/login");?>" class="btn">返回登录</button>
									</div>

								</div>
							</fieldset>

					</form>
			</div>
		</div>
	</div>
</section>
<script type="text/javascript" src="<?php echo $this->config->item('public_path');?>js/bootstrapJS/bootstrap-validation.js"></script>
<script type="text/javascript" src="<?php echo $this->config->item('public_path');?>js/register.js"></script>
<script type="text/javascript">
	$(window).load(function(){
		$('#form-register').validation();
	});
</script>
<?php $this->load->view('common/footer'); ?>